<?php
/*!
 * Theme Name:One Nav
 * Theme URI:https://www.iotheme.cn/
 * Author:iowen
 * Author URI:https://www.iowen.cn/
 */
if ( ! defined( 'ABSPATH' ) ) { exit; } 

if( $hotlist= io_get_option('hot_list_id2') ){
if(!empty($hotlist['enabled'])){
    echo '<div class="overflow-x-auto mb-3" style="margin:0 -.5rem;padding:0 .5rem"><div class="row row-sm hot-search">';
    
    $list_int=0;
    foreach ($hotlist['enabled'] as $key => $value) {
        echo'<div class="col col-md col-lg">';
        hot_search($key);
        echo'</div>';
        $list_int++;
        if($list_int>=5){
            break;
        }
    } 
    
	if($list_int>0) echo '<style>@media screen and (max-width: 1199.98px){.hot-search {min-width: '.(300*($list_int)).'px;}}</style>';
    echo '</div></div>';
}
}
